#include <cstdlib>
#include <iostream>
#include "base.h"
#include "subObject.h"
#include "subObject2.h"
#include <iomanip>
using namespace std;

int main(int argc, char *argv[])
{
	{
		std::streambuf *cinBackup = std::cin.rdbuf();
		double score;
		string name;
		cin>> score>>name;	
		cout<< setw(10)<<name<<setw(10)<<score<<"\r\n";
	}
	
	{
		SubObject2 subObj;
		subObj.id=1213;
		base * b1 = dynamic_cast<base *>(&subObj);
		if(b1){
			std::cout << "cout b1.id \n";
			std::cout <<b1->id;
			std::cout << "\n";
		}
		//base b=base();
		//b.id = 1;
		//std::cout <<b.id;
	}
	
	system("pause");
	return 0;
}
